shell_integration/macOS/FileProviderUIExt: Do not present share options view for...
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Fri, 24 Jan 2025 03:57:14 +0000 (11:57 +0800)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 10 Feb 2025 08:16:37 +0000 (09:16 +0100)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Sharing/ShareViewController.swift

index 79f6054c653837bdb62d4d4c93c21ba2c8c783a9..380822e8c88dfe740359d5cf895efc19968efb0f 100644 (file)
@@ -176,7 +176,7 @@ class ShareViewController: NSViewController, ShareViewDataSourceUIDelegate {
     }
 
     func showOptions(share: NKShare) {
-        guard let account = shareDataSource.account else { return }
+        guard let account = shareDataSource.account, share.canEdit || share.canDelete else { return }
         optionsView.account = account
         optionsView.controller = ShareController(
             share: share, account: account, kit: shareDataSource.kit